package com.nashuju.web.entity.sw;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class STaskScheduleSch extends SearchEasyUI{

	//根据时间进行搜索的部分
	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}

	private Date releaseStartSch;
	private Date releaseEndSch;
	
	
	 private Integer idSch;
	    private Integer taskIdSch;
	    private Date sendTimeSch;
	    private Date realArriveTimeSch;
	    private Date realFinishTimeSch;
	    private Date editedTimeSch;
	    private Date createdTimeSch;
	    private String statusSch;
	    private String uuidSch;
	    private String evaluationSch;
	    private String rateSch;
	    private String serviceRecordSch;
	    private String liveSituationSch;
	    private String processResultSch;
	    private String visiteRecordSch;
	    private Integer userIdSch;
	    private Integer customerIdSch;
	    private Integer contractIdSch;
	    private Integer contactIdSch;
	    private Date planArriveTimeSch;
	    private Date planFinishTimeSch;
	    private Date departTimeSch;
	    private Date arriveTimeSch;
	    private String weatherSch;
	    private String realWorkTimeSch;
	    private String departCitySch;
	    private String arriveCitySch;
	    private String taskNumSch;
	    private String taskTypeSch;
	    private String faultCategorySch;
	    private String contactNameSch;
	    private String contactPositionSch;
	    private String contactPhoneSch;
	    private String chargeSch;
	    private String workHoursSch;
	    private String transportationSch;
	    private String provinceSch;
	    private String countrySch;
	    private String positionSch;
	    private String fixedPhoneSch;
	    private String sendDemandSch;
	    private String issueReasonSch;
	    private Integer executorIdSch;
	    private String taskNameSch;
	    private String revisitRecordSch;
	    private String taskCheckedSch;
	    private String levelSch;
	    private Integer classPropertySch;
	    public void setIdSch(Integer idSch){
	        this.idSch = idSch;
	    }
	    
	    @ValueField(column = "id")
	    public Integer getIdSch(){
	        return this.idSch;
	    }

	    public void setTaskIdSch(Integer taskIdSch){
	        this.taskIdSch = taskIdSch;
	    }
	    
	    @ValueField(column = "task_id")
	    public Integer getTaskIdSch(){
	        return this.taskIdSch;
	    }

	    public void setSendTimeSch(Date sendTimeSch){
	        this.sendTimeSch = sendTimeSch;
	    }
	    
	    @ValueField(column = "send_time")
	    public Date getSendTimeSch(){
	        return this.sendTimeSch;
	    }

	    public void setRealArriveTimeSch(Date realArriveTimeSch){
	        this.realArriveTimeSch = realArriveTimeSch;
	    }
	    
	    @ValueField(column = "real_arrive_time")
	    public Date getRealArriveTimeSch(){
	        return this.realArriveTimeSch;
	    }

	    public void setRealFinishTimeSch(Date realFinishTimeSch){
	        this.realFinishTimeSch = realFinishTimeSch;
	    }
	    
	    @ValueField(column = "real_finish_time")
	    public Date getRealFinishTimeSch(){
	        return this.realFinishTimeSch;
	    }

	    public void setEditedTimeSch(Date editedTimeSch){
	        this.editedTimeSch = editedTimeSch;
	    }
	    
	    @ValueField(column = "edited_time")
	    public Date getEditedTimeSch(){
	        return this.editedTimeSch;
	    }

	    public void setCreatedTimeSch(Date createdTimeSch){
	        this.createdTimeSch = createdTimeSch;
	    }
	    
	    @ValueField(column = "created_time")
	    public Date getCreatedTimeSch(){
	        return this.createdTimeSch;
	    }

	    public void setStatusSch(String statusSch){
	        this.statusSch = statusSch;
	    }
	    
	    @ValueField(column = "status")
	    public String getStatusSch(){
	        return this.statusSch;
	    }

	    public void setUuidSch(String uuidSch){
	        this.uuidSch = uuidSch;
	    }
	    
	    @ValueField(column = "uuid")
	    public String getUuidSch(){
	        return this.uuidSch;
	    }

	    public void setEvaluationSch(String evaluationSch){
	        this.evaluationSch = evaluationSch;
	    }
	    
	    @ValueField(column = "evaluation")
	    public String getEvaluationSch(){
	        return this.evaluationSch;
	    }

	    public void setRateSch(String rateSch){
	        this.rateSch = rateSch;
	    }
	    
	    @ValueField(column = "rate")
	    public String getRateSch(){
	        return this.rateSch;
	    }

	    public void setServiceRecordSch(String serviceRecordSch){
	        this.serviceRecordSch = serviceRecordSch;
	    }
	    
	    @ValueField(column = "service_record")
	    public String getServiceRecordSch(){
	        return this.serviceRecordSch;
	    }

	    public void setLiveSituationSch(String liveSituationSch){
	        this.liveSituationSch = liveSituationSch;
	    }
	    
	    @ValueField(column = "live_situation")
	    public String getLiveSituationSch(){
	        return this.liveSituationSch;
	    }

	    public void setProcessResultSch(String processResultSch){
	        this.processResultSch = processResultSch;
	    }
	    
	    @ValueField(column = "process_result")
	    public String getProcessResultSch(){
	        return this.processResultSch;
	    }

	    public void setVisiteRecordSch(String visiteRecordSch){
	        this.visiteRecordSch = visiteRecordSch;
	    }
	    
	    @ValueField(column = "visite_record")
	    public String getVisiteRecordSch(){
	        return this.visiteRecordSch;
	    }

	    public void setUserIdSch(Integer userIdSch){
	        this.userIdSch = userIdSch;
	    }
	    
	    @ValueField(column = "user_id")
	    public Integer getUserIdSch(){
	        return this.userIdSch;
	    }

	    public void setCustomerIdSch(Integer customerIdSch){
	        this.customerIdSch = customerIdSch;
	    }
	    
	    @ValueField(column = "customer_id")
	    public Integer getCustomerIdSch(){
	        return this.customerIdSch;
	    }

	    public void setContractIdSch(Integer contractIdSch){
	        this.contractIdSch = contractIdSch;
	    }
	    
	    @ValueField(column = "contract_id")
	    public Integer getContractIdSch(){
	        return this.contractIdSch;
	    }

	    public void setContactIdSch(Integer contactIdSch){
	        this.contactIdSch = contactIdSch;
	    }
	    
	    @ValueField(column = "contact_id")
	    public Integer getContactIdSch(){
	        return this.contactIdSch;
	    }

	    public void setPlanArriveTimeSch(Date planArriveTimeSch){
	        this.planArriveTimeSch = planArriveTimeSch;
	    }
	    
	    @ValueField(column = "plan_arrive_time")
	    public Date getPlanArriveTimeSch(){
	        return this.planArriveTimeSch;
	    }

	    public void setPlanFinishTimeSch(Date planFinishTimeSch){
	        this.planFinishTimeSch = planFinishTimeSch;
	    }
	    
	    @ValueField(column = "plan_finish_time")
	    public Date getPlanFinishTimeSch(){
	        return this.planFinishTimeSch;
	    }

	    public void setDepartTimeSch(Date departTimeSch){
	        this.departTimeSch = departTimeSch;
	    }
	    
	    @ValueField(column = "depart_time")
	    public Date getDepartTimeSch(){
	        return this.departTimeSch;
	    }

	    public void setArriveTimeSch(Date arriveTimeSch){
	        this.arriveTimeSch = arriveTimeSch;
	    }
	    
	    @ValueField(column = "arrive_time")
	    public Date getArriveTimeSch(){
	        return this.arriveTimeSch;
	    }

	    public void setWeatherSch(String weatherSch){
	        this.weatherSch = weatherSch;
	    }
	    
	    @ValueField(column = "weather")
	    public String getWeatherSch(){
	        return this.weatherSch;
	    }

	    public void setRealWorkTimeSch(String realWorkTimeSch){
	        this.realWorkTimeSch = realWorkTimeSch;
	    }
	    
	    @ValueField(column = "real_work_time")
	    public String getRealWorkTimeSch(){
	        return this.realWorkTimeSch;
	    }

	    public void setDepartCitySch(String departCitySch){
	        this.departCitySch = departCitySch;
	    }
	    
	    @ValueField(column = "depart_city")
	    public String getDepartCitySch(){
	        return this.departCitySch;
	    }

	    public void setArriveCitySch(String arriveCitySch){
	        this.arriveCitySch = arriveCitySch;
	    }
	    
	    @ValueField(column = "arrive_city")
	    public String getArriveCitySch(){
	        return this.arriveCitySch;
	    }

	    public void setTaskNumSch(String taskNumSch){
	        this.taskNumSch = taskNumSch;
	    }
	    
	    @ValueField(column = "task_num")
	    public String getTaskNumSch(){
	        return this.taskNumSch;
	    }

	    public void setTaskTypeSch(String taskTypeSch){
	        this.taskTypeSch = taskTypeSch;
	    }
	    
	    @ValueField(column = "task_type")
	    public String getTaskTypeSch(){
	        return this.taskTypeSch;
	    }

	    public void setFaultCategorySch(String faultCategorySch){
	        this.faultCategorySch = faultCategorySch;
	    }
	    
	    @ValueField(column = "fault_category")
	    public String getFaultCategorySch(){
	        return this.faultCategorySch;
	    }

	    public void setContactNameSch(String contactNameSch){
	        this.contactNameSch = contactNameSch;
	    }
	    
	    @ValueField(column = "contact_name")
	    public String getContactNameSch(){
	        return this.contactNameSch;
	    }

	    public void setContactPositionSch(String contactPositionSch){
	        this.contactPositionSch = contactPositionSch;
	    }
	    
	    @ValueField(column = "contact_position")
	    public String getContactPositionSch(){
	        return this.contactPositionSch;
	    }

	    public void setContactPhoneSch(String contactPhoneSch){
	        this.contactPhoneSch = contactPhoneSch;
	    }
	    
	    @ValueField(column = "contact_phone")
	    public String getContactPhoneSch(){
	        return this.contactPhoneSch;
	    }

	    public void setChargeSch(String chargeSch){
	        this.chargeSch = chargeSch;
	    }
	    
	    @ValueField(column = "charge")
	    public String getChargeSch(){
	        return this.chargeSch;
	    }

	    public void setWorkHoursSch(String workHoursSch){
	        this.workHoursSch = workHoursSch;
	    }
	    
	    @ValueField(column = "work_hours")
	    public String getWorkHoursSch(){
	        return this.workHoursSch;
	    }

	    public void setTransportationSch(String transportationSch){
	        this.transportationSch = transportationSch;
	    }
	    
	    @ValueField(column = "transportation")
	    public String getTransportationSch(){
	        return this.transportationSch;
	    }

	    public void setProvinceSch(String provinceSch){
	        this.provinceSch = provinceSch;
	    }
	    
	    @ValueField(column = "province")
	    public String getProvinceSch(){
	        return this.provinceSch;
	    }

	    public void setCountrySch(String countrySch){
	        this.countrySch = countrySch;
	    }
	    
	    @ValueField(column = "country")
	    public String getCountrySch(){
	        return this.countrySch;
	    }

	    public void setPositionSch(String positionSch){
	        this.positionSch = positionSch;
	    }
	    
	    @ValueField(column = "position")
	    public String getPositionSch(){
	        return this.positionSch;
	    }

	    public void setFixedPhoneSch(String fixedPhoneSch){
	        this.fixedPhoneSch = fixedPhoneSch;
	    }
	    
	    @ValueField(column = "fixed_phone")
	    public String getFixedPhoneSch(){
	        return this.fixedPhoneSch;
	    }

	    public void setSendDemandSch(String sendDemandSch){
	        this.sendDemandSch = sendDemandSch;
	    }
	    
	    @ValueField(column = "send_demand")
	    public String getSendDemandSch(){
	        return this.sendDemandSch;
	    }

	    public void setIssueReasonSch(String issueReasonSch){
	        this.issueReasonSch = issueReasonSch;
	    }
	    
	    @ValueField(column = "issue_reason")
	    public String getIssueReasonSch(){
	        return this.issueReasonSch;
	    }

	    public void setExecutorIdSch(Integer executorIdSch){
	        this.executorIdSch = executorIdSch;
	    }
	    
	    @ValueField(column = "executor_id")
	    public Integer getExecutorIdSch(){
	        return this.executorIdSch;
	    }

	
	
	@ValueField(column = "send_time", equal = ">=")
	public Date getReleaseStartSch() {
		return releaseStartSch;
	}

	public void setReleaseStartSch(Date releaseStartSch) {
		this.releaseStartSch = releaseStartSch;
	}

	@ValueField(column = "send_time", equal = "<")
	public Date getReleaseEndSch() {
		if (releaseEndSch != null) {
			return DateUtil.getDateAfterDay(releaseEndSch, 1);
		}
		return createdEndSch;
	}

	public void setReleaseEndSch(Date releaseEndSch) {
		this.releaseEndSch = releaseEndSch;
	}
	

	 public void setTaskNameSch(String taskNameSch){
	        this.taskNameSch = taskNameSch;
	    }
	    
	    @ValueField(column = "task_name")
	    public String getTaskNameSch(){
	        return this.taskNameSch;
	    }

	    public void setRevisitRecordSch(String revisitRecordSch){
	        this.revisitRecordSch = revisitRecordSch;
	    }
	    
	    @ValueField(column = "revisit_record")
	    public String getRevisitRecordSch(){
	        return this.revisitRecordSch;
	    }

	    public void setTaskCheckedSch(String taskCheckedSch){
	        this.taskCheckedSch = taskCheckedSch;
	    }
	    
	    @ValueField(column = "task_checked")
	    public String getTaskCheckedSch(){
	        return this.taskCheckedSch;
	    }
	    
	    @ValueField(column = "level")
		public String getLevelSch() {
			return levelSch;
		}

		public void setLevelSch(String levelSch) {
			this.levelSch = levelSch;
		}

		 public void setClassPropertySch(Integer classPropertySch){
		        this.classPropertySch = classPropertySch;
		    }
		    
	    @ValueField(column = "class_property")
	    public Integer getClassPropertySch(){
	        return this.classPropertySch;
	    }



}